const baseUrl='https://ms.dazhongmiaotuan.cn/index.php/';

//https://ms.dazhongmiaotuan.cn/index.php/
//http://xiaoyan.zhujiao.world
const request=(params)=>{
	
	return new Promise((resolve,reject)=>{
		wx.request({
			...params,
			method:'POST',
			url:baseUrl+params.url,
			success:(res)=>{
				resolve(res)
			},
			fail:(err)=>{
				reject(err)
			}
		})
	})
}









module.exports = {
   request
}
